<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!-- include moo talk header file -->
<%@ include file="MooTalkHeader.jsp" %>
		<div id="site_content_text">
		<h2>Enter Employee information</h2>
		<%String x = request.getParameter("employee"); 
		if( x.equals("newemployee"))  { %>
			<form name="regForm" id="regForm" action="CreateEmployee.do" method="post">
				<table>
					<tr>
						<td>First Name: <br/> <input class="txtbox" type="text" name="firstTxt" /></td>
					</tr>
					<tr>
						<td>Last Name:<br/> <input class="txtbox" type="text" name="lastTxt" /></td>
					</tr>
					<tr>
						<td>Address: <br/> <input class="txtbox" type="text" name="addTxt" /></td>
					</tr>
					<tr>
						<td>City: <br/> <input class="txtbox" type="text" name="cityTxt" /></td>
					</tr>
					<tr>
						<td>State: <br/> <input class="txtbox" type="text" name="stateTxt" /></td>
					</tr>
					<tr>
						<td>Zip-Code: <br/> <input class="txtbox" type="text" name="zipTxt" /></td>
					</tr>
					<tr>
						<td>Phone:<br/> <input class="txtbox" type="text" name="phoneTxt" /></td>
					</tr>
					<tr>
						<td>Email: <br/> <input class="txtbox" type="email" name="emailTxt" /></td>
					</tr>
					<tr>
						<td>Hourly Rate: <br/> <input class="txtbox" type="email" name="rateTxt" /></td>
					</tr>
					<tr>
						<td>SSN:<br/> <input class="txtbox" type="text" name="ssnTxt" style="color:#000000;"/></td>
					</tr>
					<tr>
						<td>Password:<br/> <input class="txtbox" type="text" name="passTxt" /></td>
					</tr>
					<tr>
						<td><input class="btn" type="submit" value="Set Employee" onclick=""/></td>
					</tr>
				</table>
			</form>
			<%}else if(x.equals("edit")) { Employee emp = (Employee)session.getAttribute("Employee"); %>
			<form name="regForm" id="regForm" action="CreateEmployee.do" method="post">
				<table>
				<% session.setAttribute("edit", emp); %>
					<tr>
						<td>First Name: <br/><input class="txtbox" type="email" name="firstTxt" style="font-family: Verdna; font-size: 12px;" value="<%=emp.getFirstName() %>"></input></td>
					</tr>
					<tr>
						<td>Last Name:<br/><input class="txtbox" type="email" name="lastTxt" style="font-family: Verdna; font-size: 12px;" value="<%=emp.getLastName() %>"></input></td>
					</tr>
					<tr>
						<td>Address: <br/><input class="txtbox" type="email" name="addTxt" style="font-family: Verdna; font-size: 12px;" value="<%=emp.getAddress() %>"></input></td>
					</tr>
					<tr>
						<td>City: <br/><input class="txtbox" type="email" name="cityTxt" style="font-family: Verdna; font-size: 12px;" value="<%=emp.getCity() %>"></input></td>
					</tr>
					<tr>
						<td>State: <br/><input class="txtbox" type="email" name="stateTxt" style="font-family: Verdna; font-size: 12px;" value="<%=emp.getState() %>"></input></td>
					</tr>
					<tr>
						<td>Zip-Code: <br/><input class="txtbox" type="email" name="zipTxt" style="font-family: Verdna; font-size: 12px;" value="<%=emp.getZip() %>"></input></td>
					</tr>
					<tr>
						<td>Phone: <br/><input class="txtbox" type="email" name="phoneTxt" style="font-family: Verdna; font-size: 12px;" value="<%=emp.getZip() %>"></input></td>
					</tr>
					<tr>
						<td>Email: <br/><input class="txtbox" type="email" name="emailTxt" style="font-family: Verdna; font-size: 12px;" value="<%=emp.getEmail() %>"></input></td>
					</tr>
					<tr>
						<td>Hourly Rate:<br/><input class="txtbox" type="email" name="rateTxt" style="font-family: Verdna; font-size: 12px;" value="<%=emp.getHourlyWage() %>"></input></td>
					</tr>
					<tr>
						<td>SSN:<br/><input class="txtbox" type="email" name="ssnTxt" style="font-family: Verdna; font-size: 12px;" value="<%=emp.getSSN() %>"></input></td>
					</tr>
					<tr>
						<td>Password:<br/><input class="txtbox" type="email" name="passTxt" style="font-family: Verdna; font-size: 12px;" value="<%=emp.getPassword() %>"></input></td>
					</tr>
					<tr>
						<td><input class="btn" type="submit" value="Set Employee" onclick=""/></td>
					</tr>
				</table>
			</form>
			<% }%>
			
		</div>
		
<!--  include moo talk footer file -->
<%@ include file="MooTalkFooter.jsp" %>
